{* FILTERS *}

<center>
<br>
<h4>{$lang.pickproject}</h4><br/>
<form method="post" id="projectselection">
	{if $CURRENT_USER->groupid eq 'ADMIN'}
		<input type="hidden" name="action" id="action" value="teamselection">
	{else}
		<input type="hidden" name="action" id="action" value="list">
	{/if}
	<input type="hidden" name="projectid" id="projectid" value="">
	{foreach from=$list item=prj}
		{eval var=$prj->id assign="prid"}
		{include file="button.tpl" name=$prj->name action="goInto('$prid')"}<br>
	{/foreach}
</form>
</center>

{literal}
<script language="javascript">
	function goInto(op) {
		var forma = document.forms['projectselection'];
		forma.projectid.value=op;
		forma.submit();
	}
</script>
{/literal}